package cn.tedu.tmall.admin.mall.service;

import cn.tedu.tmall.admin.mall.pojo.param.MallGoodsAddParam;
import cn.tedu.tmall.admin.mall.pojo.vo.MallGoodsDetailVO;
import cn.tedu.tmall.admin.mall.pojo.vo.MallGoodsVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 服务层-商城商品接口
 */
public interface IMallGoodsService {
    @Transactional
    void addGoods(MallGoodsAddParam goodsAddParam);

    List<MallGoodsVO> listGoods(Long categoryId);

    MallGoodsDetailVO detail(Long goodsId);
}
